package com.sikaryofficial.backend.domain.dto.req.content;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.sikaryofficial.common.core.annotation.SqlEscapeDeserializer;
import com.sikaryofficial.common.core.web.page.PageDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * 内容请求对象
 *
 * @author qinjinyuan
 * @date 2023-10-27
 */
@Getter
@Setter
@ToString
@ApiModel(description = "内容请求对象")
public class ContentPageReq extends PageDomain {
    @ApiModelProperty(value = "发布人:左匹配")
    @JsonDeserialize(using = SqlEscapeDeserializer.class)
    private String createdName;
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
